package com.bicon.im.service.processor.rpc.fallback;

import com.bicon.im.service.processor.rpc.handler.ThirdPartRpc;
import com.bicon.life.core.base.common.Constants;
import com.bicon.life.core.base.common.entity.BaseResult;
import com.bicon.life.core.base.common.utils.JsonUtil;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Created by L on 2017/2/13.
 */
@Component
public class ThirdPartFallback implements ThirdPartRpc {

    @Override
    public String sendYunSms(String phone, String content, String type) {
        return JsonUtil.toJson(new BaseResult(Constants.RESPONSE_CODE_404, Constants.RESPONSE_MESSAGE_404));
    }


    @Override
    public String pushAllTargetByUser(String notification_title, String title, Map<String, String> map, String[] alias, String appkey, String mastersecret) {
        return JsonUtil.toJson(new BaseResult(Constants.RESPONSE_CODE_404, Constants.RESPONSE_MESSAGE_404));
    }

    @Override
    public String selectOneAttention(@RequestParam(value = "userId") String userId, @RequestParam(value = "productId") String productId,@RequestParam(value = "token")String token) {
        return JsonUtil.toJson(new BaseResult(Constants.RESPONSE_CODE_404, Constants.RESPONSE_MESSAGE_404));
    }


}
